package com.test.prolenders.analytics_prolenders.data_sdk_prolenders.services_prolenders;

import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;

import androidx.core.content.ContextCompat;

import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.beans_prolenders.ASDecBn_prolenders;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.util_prolenders.ASGeneralUtil_prolenders;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.util_prolenders.ASHarewareUtil_prolenders;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.util_prolenders.ASNetworkUtil_prolenders;
import com.test.prolenders.analytics_prolenders.data_sdk_prolenders.util_prolenders.ASStoreUtil_prolenders;

public class ASDecIfo_prolenders {

    public static ASDecBn_prolenders getDatas(Context paramContext) {
        ASDecBn_prolenders bean = new ASDecBn_prolenders();
        if (PackageManager.PERMISSION_GRANTED == ContextCompat.checkSelfPermission(paramContext, Manifest.permission.READ_PHONE_STATE)) {
            try {
                bean.setMac(ASNetworkUtil_prolenders.getMacAddress(paramContext));
                bean.setImei(ASGeneralUtil_prolenders.getImei(paramContext));
                bean.setLaguage(ASGeneralUtil_prolenders.getLanguage(paramContext));
                bean.setArea(ASGeneralUtil_prolenders.getArea(paramContext));
                bean.setScreenHeight(ASGeneralUtil_prolenders.getDeviceHeight(paramContext));
                bean.setScreenWidth(ASGeneralUtil_prolenders.getDeviceWidth(paramContext));
                bean.setNetworkData(ASGeneralUtil_prolenders.getSimOperatorName(paramContext));
                bean.setFrontCameraPixels(ASHarewareUtil_prolenders.getFrontCameraPixels(paramContext));
                bean.setRearCameraPixels(ASHarewareUtil_prolenders.getBackCameraPixels(paramContext));
                bean.setRa(ASStoreUtil_prolenders.getRamTotal(paramContext));
                bean.setRo(ASStoreUtil_prolenders.getCashTotal(paramContext));
                bean.setIp(ASNetworkUtil_prolenders.getIPAddress(paramContext));
                bean.setIp2(ASNetworkUtil_prolenders.getIPAddress(paramContext));
                bean.setNetworkEnvironment(ASGeneralUtil_prolenders.getNetworkType(paramContext));
                bean.setCu(ASGeneralUtil_prolenders.getCpuModel(paramContext));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return bean;
    }

}
